@dias I want a code with 2 relays and 2 pir You got to get started coding then If you bump into problem you can ask questions here.